from django.db import models


class UserInfo(models.Model):
    """Model definition for UserInfo."""

    username = models.CharField(max_length=50, verbose_name="用户名")
    email = models.CharField(max_length=50, verbose_name="邮箱")
    mobile_phone = models.CharField(max_length=32, verbose_name="手机号")
    password = models.CharField(max_length=50, verbose_name="密码")

    class Meta:
        """Meta definition for UserInfo."""

        verbose_name = "UserInfo"
        verbose_name_plural = "UserInfos"

    def __str__(self):
        """Unicode representation of UserInfo."""
        return self.username
